package com.social.model;

import java.util.List;

public class PageResult<T> {
    private int total;         // 总记录数
    private int page;          // 当前页
    private int pageSize;      // 每页条数
    private int totalPages;    // 总页数
    private List<T> data;      // 数据列表

    // Getter + Setter
    public int getTotal() { return total; }
    public void setTotal(int total) { this.total = total; }
    public int getPage() { return page; }
    public void setPage(int page) { this.page = page; }
    public int getPageSize() { return pageSize; }
    public void setPageSize(int pageSize) { this.pageSize = pageSize; }
    public int getTotalPages() { return totalPages; }
    public void setTotalPages(int totalPages) { this.totalPages = totalPages; }
    public List<T> getData() { return data; }
    public void setData(List<T> data) { this.data = data; }
}